<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="" method="post" enctype="multipart/form-data">
    {% csrf_token %}
    姓名：<input type="text" name="name" value="{{ a.name }}"><br>
    年龄：<input type="text" name="age" value="{{ a.age }}"><br>
    性别：<input type="text" name="sex" value="{{ a.sex }}"><br>
    头像：<input type="file" name="icon" value="{{ a.icon }}"><br>
    爱好：<input type="text" name="hobby" value="{{ a.hobby }}"><br>
    简介：<input type="text" name="content" value="{{ a.content }}"><br>
    <input type="submit" value="修改">
</form>
</body>
</html>